package edu.cmu.ibill.databeans;

/**
 * 
 * @author Yunkai Zhang
 * 
 */

public class CategoryDict implements Comparable<CategoryDict> {

	private int id;
	private String categoryName;

	public CategoryDict() {
		id = -1;
	}

	public CategoryDict(String categoryName) {
		this.categoryName = categoryName;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setCategoryName(String cn) {
		this.categoryName = cn;
	}

	public int getId() {
		return this.id;
	}

	public String getCategoryName() {
		return this.categoryName;
	}

	@Override
	public int compareTo(CategoryDict cd1) {
		if (this.id < cd1.id)
			return -1;
		else
			return 1;
	}

}
